package com.test.redis.base;

import lombok.Getter;

/**
 * 业务异常类
 */
@Getter
public class BizException extends RuntimeException {
    
    private final String code;
    private final String message;
    
    public BizException(String message) {
        super(message);
        this.code = "500";
        this.message = message;
    }
    
    public BizException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
    
    // getters...
}